<template>
  <el-dialog :title="'FQA关联'" :close-on-click-modal="false" append-to-body :visible.sync="visible"   lock-scroll  width="1200px" custom-class='table-check-box-records' >
    <el-row class="cu-common-search-box" :gutter="16">
      <el-form @submit.native.prevent>
        <el-col :span="8">
          <el-form-item label="" prop="brand">
            <el-input v-model="query.keywords" placeholder="请输入关键词或标签查询" clearable required :style="{ width: '100%' }"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="4">
          <el-form-item>
            <el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
            <el-button icon="el-icon-refresh-right" @click="reset()">重置</el-button>
          </el-form-item>
        </el-col>
      </el-form>
    </el-row>

    <el-row :gutter="15" type="flex" style="flex-wrap:wrap">
      <custom-table v-loading="loading" :data="list" :hasNO="false" height='550px' :hasC='true' ref='multipleTable'  @selection-change="handleSelectionChange">
        <el-table-column label="问题来源" prop="sourse" align="left">
          <template slot-scope="scope">
            {{ scope.row.sourse | dynamicTreeCodeText(sourseOptions) }}
          </template>
        </el-table-column>
        <el-table-column prop="question" label="问题描述" align="left" width="200" />
        <el-table-column prop="createTime" label="录入时间" align="left" width="120" :formatter="custom.tableDateTimeFormat" />
        <el-table-column prop="solutions" label="标准答案" align="left" min-width="200" />
        <el-table-column prop="keywords" label="关键词" align="left" width="160" />
      </custom-table>
    </el-row>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取 消</el-button>
      <el-button type="primary"   @click="dataFormRecords()">确 定</el-button>
    </span>

  </el-dialog>
</template>
<script>
export { default } from './index.js'
</script>
<style scoped>
.el-time-spinner__wrapper {
  width: 100% !important;
}
@import url(index.scss);
</style>
